home *** CD-ROM | disk | FTP | other *** search
- Q32305 Error C2126 Repeated
- C Compiler
- 5.10 | 5.10
- MS-DOS | OS/2
-
- Problem:
- When the following program is compiled with the default options,
- the error C2126 "automatic allocation exceeds 32K" is repeated four
- times:
-
- #define LINT_ARGS
- #include <limits.h>
- #include <malloc.h>
- #include <stdio.h>
- #include <stdlib.h>
-
- main(void)
- {
- long k;
- int i;
- char *q;
- char *p[30000];
-
- i = 0;
- do
- p[i++] = (char *)malloc((size_t)K);
- while (q != NULL);
- return 0;
- }
-
- Response:
- This error message is supposed to appear, but it should appear only
- once. Make the variable p a global array to avoid the error(s).
- Microsoft has confirmed this to be a problem in Version 5.10 of the
- C compiler. We are researching this problem and will post new
- information as it becomes available.
-
-
-
- Keywords: buglist5.10
- Updated 88/07/21 03:19
-